package com.fishery.order.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author run 、ghost
 * @since 2021-01-31
 */
@ApiModel(value = "TProductOrder对象", description = "")
@TableName("t_product_order")
public class Order implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "订单编号", hidden = true)
	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String id;

	@ApiModelProperty(value = "产品编号")
	private String productId;

	@ApiModelProperty(value = "物流订单id", hidden = true)
	private String logisticsId;

	@ApiModelProperty(value = "目标id(baseId、customerId)")
	private String targetId;

	@ApiModelProperty(value = "目标名称")
	private String targetName;

	@ApiModelProperty(value = "产品名")
	private String productName;

	@ApiModelProperty(value = "基地编号")
	private String baseId;

	@ApiModelProperty(value = "发货方类型（1养殖基地、2加工厂、3冷库）")
	private Integer sourceType;

	@ApiModelProperty(value = "产品重量")
	private Double weight;

	@ApiModelProperty(value = "版本号（乐观锁）", hidden = true)
	@Version
	@TableField(fill = FieldFill.INSERT)
	private Integer version;

	@ApiModelProperty(value = "逻辑删除（0未删除，1删除）", hidden = true)
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private Integer isDeleted;

	@ApiModelProperty(value = "创建时间", hidden = true)
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;

	@ApiModelProperty(value = "修改时间", hidden = true)
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

	@ApiModelProperty(value = "目标的类型(1个人、2企业、3加工厂、4冷库)")
	private Integer targetType;

	@ApiModelProperty(value = "收货地址")
	private String receiveAddress;

	@ApiModelProperty(value = "收货地址经度")
	private String addressLongitude;

	@ApiModelProperty(value = "收货地址纬度")
	private String addressLatitude;

	@ApiModelProperty(value = "收货联系电话")
	private String phoneNumber;

	@ApiModelProperty(value = "金额(万元)")
	private BigDecimal money;

	@ApiModelProperty(value = "数量")
	private Integer amount;

	@ApiModelProperty(value = "订单状态（0、未送达，1、送达）", hidden = true)
	private Integer status;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public Integer getTargetType() {
		return targetType;
	}

	public void setTargetType(Integer targetType) {
		this.targetType = targetType;
	}

	public String getReceiveAddress() {
		return receiveAddress;
	}

	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}

	public String getAddressLongitude() {
		return addressLongitude;
	}

	public void setAddressLongitude(String addressLongitude) {
		this.addressLongitude = addressLongitude;
	}

	public String getAddressLatitude() {
		return addressLatitude;
	}

	public void setAddressLatitude(String addressLatitude) {
		this.addressLatitude = addressLatitude;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getLogisticsId() {
		return logisticsId;
	}

	public void setLogisticsId(String logisticsId) {
		this.logisticsId = logisticsId;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}


}
